class Forum < ActiveRecord::Base

  belongs_to :course
  has_many :posts
  belongs_to :content

  validates_presence_of :title
  validates_presence_of :course_id
  
  validates_uniqueness_of:title, :scope => [:course_id]
  
end
